package com.springboot.uav.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.uav.entity.Orders;
import com.springboot.uav.entity.PrivateOrdersQueryMsg;
import com.springboot.uav.entity.PublicOrdersQueryMsg;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {
    // 自定义分页查询方法

    IPage<PublicOrdersQueryMsg> selectOrdersWithFilters(Page<PublicOrdersQueryMsg> page, String pickupFilter, String deliveryFilter);
    IPage<PrivateOrdersQueryMsg> selectMyOrdersWithFilters(Page<PrivateOrdersQueryMsg> page, Integer userId ,Integer type ,String filter);
}
